RewriteEngine On

# Redirect URLs without an extension to the corresponding .html file
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME}.html -f
RewriteRule ^([^/]+)/?$ $1.html [L]

# Redirect the root URL to i.html
RewriteRule ^$ /i.html [L]

# Block all access to robots.txt for extra security
<Files "robots.txt">
    Order Deny,Allow
    Deny from all
</Files>
